import { fromJS } from "immutable";
import setData from "./type"

const initialState = fromJS({
    cdata:{
        category:null,
        meterial:null
    }
})

export default (state = initialState, { type, data }) => {
  // console.log(type,data,"aaa");
  try{
    return setData[type](state,data)
  }catch(error){
    return state
  }
}
